package com.moive.news.tqnewsapplication.weight;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by Administrator on 2017/12/15.
 */

public class MakeListView extends ListView {
    public MakeListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MakeListView(Context context) {
        super(context);
    }

    public MakeListView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);

    }
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, mExpandSpec);
    }
}
